<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!--360浏览器优先以webkit内核解析-->


    <title> - 主页示例</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="${pageContext.request.contextPath}/res/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/res/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/res/css/credit_index.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/res/css/credit_namage.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/res/css/animate.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/res/css/style.css?v=4.1.0" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/res/js/jquery.min.js?v=2.1.4"></script>
    <script src="${pageContext.request.contextPath}/res/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${pageContext.request.contextPath}/res/js/plugins/layer/layer.min.js"></script>
    <!-- Flot -->
    <script src="${pageContext.request.contextPath}/res/js/plugins/flot/jquery.flot.js"></script>
    <script src="${pageContext.request.contextPath}/res/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="${pageContext.request.contextPath}/res/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="${pageContext.request.contextPath}/res/js/plugins/flot/jquery.flot.pie.js"></script>
    <!-- 自定义js -->
    <script src="${pageContext.request.contextPath}/res/js/content.js"></script>
</head>

<body class="gray-bg">
<div class="box_wrap">
    <div class="row J_mainContent" id="content-main">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>账户设置</h5>
                </div>
                <div class="ibox-content">

                    <table class="footable table " >
                        <thead>
                        </thead>
                        <tbody>
                        <tr>
                            <td>API接口</td>
                            <input type="hidden" name="" id="userAppkey" value="${user.appkey}" >
                            <c:if test="${user.appkey==null||user.appkey==''}">
                                <td id="appkeyValue">API-key：未获取</td>
                                <td>未获取</td>
                                <td><a onclick="getKey()">获取</a></td>
                            </c:if>
                            <c:if test="${user.appkey!=null&&user.appkey!=''}">
                                <td>API-key：${user.appkey}</td>
                                <td>已获取</td>
                                <td>-</td>
                            </c:if>

                        </tr>
                        <tr>
                            <td>登录密码</td>
                            <td>保障账户安全，建议密码由6-16位数字、字母、下划线中的2种组成</td>
                            <td>已设置</td>
                            <td><a>更换</a></td>
                        </tr>
                        <tr>
                            <td>绑定手机</td>
                            <td>您绑定的手机号码：${user.phone}</td>
                            <td>已绑定</td>
                            <td> <a>更换</a></td>
                        </tr>

                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="5">
                                <ul class="pagination pull-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
    <!-- 全局js -->

    <!--flotdemo-->
    <script type="text/javascript">
        $(function() {

        });


    </script>
</body>

</html>
